export default [
    {
        path: '/admin',
        name: 'admin',
        component: () => import('../admin/admin.vue'),
        children: [
            {
                path: 'home',
                name:"首页",
                icon:"el-icon-s-home",
                isAdmin:false,
                component: () => import('../admin/home.vue')
            },
            {
                path: 'type',
                name:"分类",
                icon:"el-icon-wallet",
                component: () => import('../admin/type.vue')
            },
            {
                path: 'user',
                icon:"el-icon-user",
                name:'用户列表',
                component: () => import('../admin/user.vue'),
                
            },
            {
                path: 'article',
                icon:"el-icon-s-order",
                name:'文章列表',
                isAdmin:false,
                component: () => import('../admin/article.vue')
            },
            // 文章编辑
            {
                path: 'write',
                name:'文章编辑',
                component: () => import('../admin/write.vue')
            }
        ],
    }
];